#include <QApplication>
#include "window.h"
#include "global.h"
#include <stdlib.h>

QList<BioUnit*>* BioUnitList;

int main(int argc, char *argv[])
{
    QApplication app(argc, argv);
    srand(QTime::currentTime().msec());
    BioUnitList = new QList<BioUnit*>();
    for (int i = 0; i < 10; i++)
    {
        BioUnitList->insert(BioUnitList->begin(),new BioUnit(rand()%300,rand()%300,rand()%100,rand()%100,rand()%50+50,rand()%100,rand()%100));
    }
    Window window;
    window.show();
    return app.exec();
}
